/*
 * @author Brandon Wong
 */

package com.apps.ubc.cc.model;

public class LatLongModel {

	private String latitude;
	private String longtitude;

	public LatLongModel(String latitude, String longtitude) {
		this.latitude = latitude;
		this.longtitude = longtitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLongitude() {
		return longtitude;
	}

	public void setLongtitude(String longtitude) {
		this.longtitude = longtitude;
	}

	@Override
	public String toString() {
		return "LatLongModel [latitude=" + latitude + ", longtitude="
				+ longtitude + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((latitude == null) ? 0 : latitude.hashCode());
		result = prime * result
				+ ((longtitude == null) ? 0 : longtitude.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LatLongModel other = (LatLongModel) obj;
		if(other.latitude.equals(this.latitude) || other.longtitude.equals(this.longtitude))
			return false;
		return true;
	}
	
	
	
}
